package com.gq.webstore.hdzw.model;

import lombok.Data;

import java.util.LinkedList;
import java.util.List;

@Data
public class Store {
    private String name;
    private String url;
    private String orgContent;
    private int orgChapterSize;
    private List<String> preLines = new LinkedList<>();
    private List<Chapter> chapterList = new LinkedList<>();

    public int getCharLen() {
        int cnt = 0;
        for (Chapter c : chapterList) {
            cnt += c.getCharLen();
        }
        return cnt;
    }

}
